package org.dtrd.modules.patient.entity.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.common.util.DateUtils;

import java.util.Date;

/**
 * @author qr
 * @date 2022/4/13 14:10
 */
@ApiModel("患者首页请求")
@Getter
@Setter
public class PatientIndexRequest {

    @ApiModelProperty(value = "患者id", required = true)
    private Integer patientId;

    @ApiModelProperty(value = "查询打卡率曲线日期, 1-最近两周, 2-最近一个月, 3-最近三个月, 默认为1")
    private Integer type = 1;

    @ApiModelProperty("当日打卡的查询日期, 默认当天")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date queryDate = DateUtils.getDateYMD();

    @JsonIgnore
    private Date startDate;
    @JsonIgnore
    private Date endDate;
}
